home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Nov 90 / MacApp.Tech$ 11⁄2⁄90 / 2260-Problems with MacApp-Oct90 next >
Encoding:
Text File  |  1991-03-06  |  2.2 KB  |  49 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  STATTENFIELD to MACAPP.ADMIN
  2.  
  3. Item    5581181                         27-Oct-90        00:40PDT
  4.  
  5. From:   MADA2                           MacApp Dev Assoc, Don Sawtelle,IVC
  6.  
  7. To:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    Problems with MacApp menus
  10.  
  11. I am having a problem with menu management in MacApp that causes the Save item
  12. in the File menu to be disabled even though the document change count is
  13. non-zero.
  14.  
  15. I am running a hardware-controlled process that collects some data from a NuBus
  16. bus master board.  The status of this process is monitored in the DoIdle method
  17. of one of my objects.  When the process is complete, that DoIdle method creates
  18. a command object to which is attached the data transferred from the NuBus
  19. board, and posts the command object.  The application object correctly gets the
  20. command object and calls its DoIt method (which places the new data in the
  21. document).  The application then increments the document's change count.
  22.  
  23. At this point, you would think that everything is ok.  Most of the behavior of
  24. the application thus far is just the standard MacApp stuff (only the DoIdle
  25. method and the method that the command object calls to add data to the document
  26. are my code, the rest is MacApp).  If the user then hits Command-S or pulls
  27. down the File method to save the newly changed document, however, the Save menu
  28. item is gray!
  29.  
  30. The reason for this is that TApplication, in SetupTheMenus, only does the menu
  31. set up procedure if MacApp's menu handling routines think that the menus or the
  32. menu bar is invalid, which they don't.  I can, of course, call InvalidateMenus
  33. myself to fix this problem, but it seems as though MacApp should automatically
  34. invalidate the File menu when the document change count goes from 0 to 1 (or
  35. anything to 0, for that matter).
  36.  
  37. Does anyone out there know if I am just missing some step that I should be
  38. taking?  Also, does anyone know if the latest patches address asynchronous (not
  39. through an event) changes to documents and the effect on SetupTheMenus?
  40.  
  41. Thanks for reading all of this!
  42.  
  43. Paul G. Tobey
  44.  
  45. [ This message originated from the MADA BBS. Replies addressed to MacApp.Tech$
  46. will be ported back to the MADA BBS (so don’t send them directly to this MADA2
  47. address). Thanks! ]
  48.  
  49.